﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Grupo3.Objetos
{
    public class Objeto2D
    {
        public Vector2 position;
        public Texture2D texture;

        public Objeto2D(Texture2D textura, Vector2 position)
        {
            this.texture = textura;
            this.position = position;
        }

        public Rectangle collisionBox()
        {
            return new Rectangle((int)position.X, (int)position.Y, texture.Width, texture.Height);
        }

        public virtual void Update(GameTime gameTime)
        {

        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, Color.White);
        }

    }

}
